#!/bin/bash

sudo pip3 install matplotlib
sudo pip3 install numpy

graph()
{
	python3 graphing.py -i_one $1$2 -i_two $1$3 -o $1$4.png -percent -bar 
}

WORKING_DIR=$(pwd)

danish=( '/danish_class' '/danish_education_50' '/danish_education_20' '/danish_feelings' '/danish_give' '/danish_govern' '/danish_individualism' )
british=( '/british_class' '/british_education_50' '/british_education_20' '/british_feelings' '/british_give' '/british_govern' '/british_individualism')
names=( '/class' '/education_50' '/education_20' '/feelings' '/give' '/govern' '/individualism')

echo 'Graphing data.'

for i in $(seq 0 6 )
do
	:
	graph $WORKING_DIR ${danish[i]} ${british[i]} ${names[i]}
done
